package com.example.mypra1;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

/**
 * 测试提交成功结果
 */
public class SuccessActivity extends AppCompatActivity {
    private String answer;
    private Button go_result;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_success);
        Intent intent = getIntent();
        answer = intent.getStringExtra("answer");
        go_result = findViewById(R.id.go_result);
        go_result.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent1 = new Intent(SuccessActivity.this,ResultActivity.class);
                intent1.putExtra("answer",answer);
                startActivity(intent1);//跳转至测试结果分析界面
                finish();

            }
        });

    }
}